package com.lbmb.photodrawaimanager.exception;

import com.lbmb.photodrawaimanager.enums.ResponseEnum;
import com.lbmb.photodrawaimanager.enums.ErrorCodeEnums;

/**
 * @author hanWang
 * @Title:
 * @Package
 * @Description:
 * @date 2023/8/26:44 下午
 */
public class BusinessException extends ErrorCodeException{

    public BusinessException(int code, String message) {
        super(code, message);
    }

    public BusinessException(ErrorCodeEnums errorCodeEnums) {
        super(errorCodeEnums.getCode(), errorCodeEnums.getMessage());
    }

    public BusinessException(String message) {
        super(300, message);
    }

    public BusinessException(ResponseEnum responseEnum) {
        super(responseEnum.getCode(), responseEnum.getMessage());
    }
}
